package edu.sctu.wulixia.month6.day20150609;

import java.util.Calendar;

/**
 * Created by user05 on 2015/6/9.
 */
public class PrintTime {
    Calendar calendar = Calendar.getInstance();
    public void setTime(int count){
        //count为乘车站数
        for (int i = 0; i < count; i++) {
        //设置进站时间
            calendar.set(2015,6-1,9,21,10,00);
            //每站行驶2分钟
        calendar.add(calendar.MINUTE,i*2);
//
        }
        System.out.println("出站时间为："+calendar.getTime());
    }


    public static void main(String[] args) {
        PrintTime printTime = new PrintTime();
        printTime.setTime(6);
    }
}
